<?php
class ProjectImage extends DataObject{
    static $db = array(
		'Name'		=> 'Varchar(255)'
    );
    
    static $has_one = array(        
		'Image'			=> 'Image',
		'Project'		=> 'Project',
    );
	
    function getCMSFields_forPopup() {		
        $fields = new FieldSet(); 
        $fields->push(new TextField('Name', 'Name'));                        
		$fields->push(new ImageField('Image', 'Image')); 
        
        return $fields;
    }

}